package com.yidu.logisticssystem.controller;

import com.yidu.logisticssystem.entity.LogisticsEvaluate;
import com.yidu.logisticssystem.service.LogisticsEvaluateService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 评价表(LogisticsEvaluate)表控制层
 *
 * @author zp
 * @since 2021-03-12 11:04:14
 */
@RestController
@RequestMapping("logisticsEvaluate")
public class LogisticsEvaluateController {
    /**
     * 服务对象
     */
    @Resource
    private LogisticsEvaluateService logisticsEvaluateService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public LogisticsEvaluate selectOne(Integer id) {
        return this.logisticsEvaluateService.queryById(id);
    }

}
